package com.wzh.store.service.ex;

/**
 * @Author wzh
 * @create 2022/4/7 19:05
 */
//业务层异常的基类,整个业务的异常只有在运行的时候产生
public class ServiceException extends RuntimeException{
    public ServiceException() {
        super();
    }

    public ServiceException(String message) {
        super(message);
    }
             //参数为异常信息和异常对象
    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    protected ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}

